import org.apache.spark.sql.SparkSession

object spark_version_to_look {
  def main(args: Array[String]): Unit = {
    // 创建 SparkSession
    val spark = SparkSession.builder()
      .master("local[*]")
      .appName("Spark Version Check")
      .getOrCreate()

    // 获取 Spark 版本信息
    val sparkVersion = spark.version
    println(s"Spark version: $sparkVersion")

    // 停止 SparkSession
    spark.stop()
  }

}
